|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPhenotypeSpace
Interface for an phenotype space. This is used to limit objects to a space with fixed dimensions.
Method Summary | |
---|---|
boolean |
contains(math.geom2d.polygon.Polygon2D shape)
Checks if a shape is inside the space and does not intersect the bounds. |
math.geom2d.polygon.Rectangle2D |
getOutterBounds()
Gets the outter bounds of the space as rectangle. |
float |
minDistanceToWall(math.geom2d.polygon.Polygon2D shape,
float angle)
Calculates the minimum distance of a shape to a wall. |
Method Detail |
---|
boolean contains(math.geom2d.polygon.Polygon2D shape)
shape
- Shape that has do be in the space.
true
if the shape is fully inside of the space.math.geom2d.polygon.Rectangle2D getOutterBounds()
float minDistanceToWall(math.geom2d.polygon.Polygon2D shape, float angle)
shape
- The shape to check for distance to a wall.angle
- The angle of the shape.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |